<%@ page import="java.util.*"%><%@ page import="org.json.*"%><%
         Map params = request.getParameterMap();
		 JSONObject object = new JSONObject(params);
	     Iterator iterator = params.keySet().iterator();
		 while(iterator.hasNext()){
			 String key = (String)iterator.next();
			 Object value = params.get(key);
			 if(value instanceof String[]){
				 String[] arr = (String[])value;
				 String tmp="";
				 for(int i=0;i<arr.length;i++){
					 if(i<arr.length - 1){
					     tmp = tmp +arr[i]+",";
					 } else {
						 tmp = tmp +arr[i];
					 }
				 }
                 System.out.println(key+"="+tmp);
			 }else{
				 System.out.println(key+"="+value);
			 }
		 }
		 System.out.println(object.toString());
		 out.print("{message:\"OK\"}");
 %>